package com.qiyu.proxy.starter.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author linhao
 * @Date created in 8:22 下午 2020/12/9
 */
@RestController
@Scope("prototype")
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping(value = "/test")
    public String doTest(){
        System.out.println("this is test");
        return testService.test();
    }
}
